package com.yootk;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * SpringBootServletInitializer，打包war文件
 */
@SpringBootApplication
@ServletComponentScan({"com.yootk.listener"})   // Servlet组件扫描
public class StartApplication03 extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(StartApplication03.class, args);
    }
}
